package data_base;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class introductions {

	public static void introducirCancion(String titulo, String autor,
			String genero, String album, String ruta) {

		try {
			Connection conn = DataConnection.openConection();

			String query = "INSERT INTO CANCION VALUES('" + titulo + "','"
					+ autor + "','" + genero + "','" + album + "','" + ruta
					+ "')";

			Statement statement = conn.createStatement();
			System.out.println(query);
			// ResultSet rs = statement.executeQuery(query);

		} catch (SQLException e) {
			e.printStackTrace();
		}

	}

	public static void main(String[] args) {
		introducirCancion("probando", "probando2", "probando3", "probando4",
				"probando5");
	}
}
